(w32_BDF_to_x_font): Unmap memory when finished.
authorJason Rumney <jasonr@gnu.org>
Wed, 20 Jun 2007 21:26:16 +0000 (21:26 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 20 Jun 2007 21:26:16 +0000 (21:26 +0000)
(w32_free_bdf_font): Unmap memory not handle.

src/w32bdf.c

index 64ec2f7a3b0812b965fa324b75a62eb16d72d8f7..40e705a18c97932978bf530ac8c349a020896456 100644 (file)
@@ -302,7 +302,7 @@ w32_free_bdf_font(bdffont *fontp)
   font_char *pch;
   cache_bitmap *pcb;
 
-  UnmapViewOfFile(fontp->hfilemap);
+  UnmapViewOfFile(fontp->font);
   CloseHandle(fontp->hfilemap);
   CloseHandle(fontp->hfile);
 
@@ -867,6 +867,7 @@ int w32_BDF_to_x_font (char *file, char* xstr, int len)
           retval = 1;
         }
     }
+  UnmapViewOfFile (font);
   CloseHandle (hfile);
   CloseHandle (hfilemap);
   return retval;